using IQIGame.Onigao.Framework;
using IQIGame.Onigao.Game;
using System;

namespace IQIGame.Onigao.GamePlay
{
    public class UD_FunctionOn : UIBaseData
    {
        public int functionTypeId;
        public Action onFormUIClose;

        public static UD_FunctionOn Create(int functionTypeId, Action onFormUIClose)
        {
            var d = ClassPool<UD_FunctionOn>.Get();
            d.functionTypeId = functionTypeId;
            d.onFormUIClose = onFormUIClose;
            return d;
        }

        public override void OnReset()
        {
            functionTypeId = 0;
            onFormUIClose = null;
        }
    }
}
